package view;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JSplitPane;
import javax.swing.JButton;

public class LoginPanel extends JPanel {
	private JTextField jfieldPw;
	private JTextField jfieldID;

	/**
	 * Create the panel.
	 */
	public LoginPanel() {
		setLayout(null);
		
		jfieldID = new JTextField();
		jfieldID.setBounds(57, 5, 114, 18);
		jfieldID.setText("");
		add(jfieldID);
		jfieldID.setColumns(10);
		
		jfieldPw = new JTextField();
		jfieldPw.setBounds(57, 31, 114, 18);
		add(jfieldPw);
		jfieldPw.setColumns(10);
		
		JButton jbtnLogin = new JButton("로그인");
		jbtnLogin.setBounds(79, 61, 70, 24);
		add(jbtnLogin);
		
		jbtnLogin.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
	
				String id = jfieldID.getText();
				String pw = jfieldPw.getText();
				
				
				
				
			}
		
		});

	}

}
